import moment from "moment"

export const generateTimes = (unit: 'year' | 'month' | 'day', count: number = 5) => {
  const times = []
  for (let i = 0; i < count; i++) {
    const time = moment().subtract(i, "year").format("YYYY")
    times.push({ dictLabel: time, dictValue: time })
  }
  return times
}

